\hypertarget{response_8h}{\section{include/response.h File Reference}
\label{response_8h}\index{include/response.\-h@{include/response.\-h}}
}


Header file for response manager.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structrspn__maps__struct}{rspn\-\_\-maps\-\_\-struct}
\begin{DoxyCompactList}\small\item\em structure of response map \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{response_8h_a44daf20783e348420858c6b5c8d2109b}{\#define \hyperlink{response_8h_a44daf20783e348420858c6b5c8d2109b}{M\-A\-X\-\_\-\-R\-E\-S\-P\-O\-N\-S\-E}~20}\label{response_8h_a44daf20783e348420858c6b5c8d2109b}

\begin{DoxyCompactList}\small\item\em Maximum Response Type. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8}{rspn\-\_\-type} \{ \\*
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8a2bc49ec37d6a5715dd23e85f1ff5bb59}{O\-K}, 
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8af3fbd514ba26b8f7c9a91c84dfd9b515}{Wrong\-Length}, 
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8a327fd5244e9323badd53a1af2fba77cb}{Cmd\-Not\-Allowed}, 
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8a3afeda292861a07cfd08eea542bc18da}{File\-Not\-Found}, 
\\*
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8a693d4cd7b2e9060d14369731a78755a4}{Wrong\-P1\-P2}, 
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8ae510e288bffe8427ef1cf79fb7f1156b}{I\-N\-S\-Not\-Supported}, 
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8a8c2ab73b3a58c50e5b16810965d72115}{C\-L\-A\-Not\-Supported}, 
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8a336747997fe4e20bb8ae39c3bdad28fb}{Fatal\-Error}, 
\\*
\hyperlink{response_8h_a0b9384277369e8c36725467bb40194d8a83d52d0684a72d1ba9e2d6ec11a62a4c}{Max\-Response} = M\-A\-X\-\_\-\-R\-E\-S\-P\-O\-N\-S\-E
 \}
\begin{DoxyCompactList}\small\item\em response type enumeration \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{response_8h_a6be05ba2852f56e51be7c2b35e9018c8}{Response\-Manager} ()
\begin{DoxyCompactList}\small\item\em set up an appropriate response A\-P\-D\-U \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\hypertarget{response_8h_a99540d2d2a8a70266497dd4109c5cb04}{\hyperlink{structrspn__maps__struct}{rspn\-\_\-maps\-\_\-struct} \hyperlink{response_8h_a99540d2d2a8a70266497dd4109c5cb04}{rspn\-\_\-maps} \mbox{[}\hyperlink{response_8h_a44daf20783e348420858c6b5c8d2109b}{M\-A\-X\-\_\-\-R\-E\-S\-P\-O\-N\-S\-E}\mbox{]}}\label{response_8h_a99540d2d2a8a70266497dd4109c5cb04}

\begin{DoxyCompactList}\small\item\em response maps \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Header file for response manager. \begin{DoxyAuthor}{Author}
Ricky Hariady (\href{mailto:ricky.hariady@enter.web.id}{\tt ricky.\-hariady@enter.\-web.\-id})
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
7/10/2013 
\end{DoxyDate}


\subsection{Enumeration Type Documentation}
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8}{\index{response.\-h@{response.\-h}!rspn\-\_\-type@{rspn\-\_\-type}}
\index{rspn\-\_\-type@{rspn\-\_\-type}!response.h@{response.\-h}}
\subsubsection[{rspn\-\_\-type}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf rspn\-\_\-type}}}\label{response_8h_a0b9384277369e8c36725467bb40194d8}


response type enumeration 

\begin{Desc}
\item[Enumerator]\par
\begin{description}
\index{O\-K@{O\-K}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!O\-K@{O\-K}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8a2bc49ec37d6a5715dd23e85f1ff5bb59}{O\-K}\label{response_8h_a0b9384277369e8c36725467bb40194d8a2bc49ec37d6a5715dd23e85f1ff5bb59}
}]9000 \index{Wrong\-Length@{Wrong\-Length}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!Wrong\-Length@{Wrong\-Length}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8af3fbd514ba26b8f7c9a91c84dfd9b515}{Wrong\-Length}\label{response_8h_a0b9384277369e8c36725467bb40194d8af3fbd514ba26b8f7c9a91c84dfd9b515}
}]6700 \index{Cmd\-Not\-Allowed@{Cmd\-Not\-Allowed}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!Cmd\-Not\-Allowed@{Cmd\-Not\-Allowed}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8a327fd5244e9323badd53a1af2fba77cb}{Cmd\-Not\-Allowed}\label{response_8h_a0b9384277369e8c36725467bb40194d8a327fd5244e9323badd53a1af2fba77cb}
}]6986 \index{File\-Not\-Found@{File\-Not\-Found}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!File\-Not\-Found@{File\-Not\-Found}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8a3afeda292861a07cfd08eea542bc18da}{File\-Not\-Found}\label{response_8h_a0b9384277369e8c36725467bb40194d8a3afeda292861a07cfd08eea542bc18da}
}]6\-A82 \index{Wrong\-P1\-P2@{Wrong\-P1\-P2}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!Wrong\-P1\-P2@{Wrong\-P1\-P2}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8a693d4cd7b2e9060d14369731a78755a4}{Wrong\-P1\-P2}\label{response_8h_a0b9384277369e8c36725467bb40194d8a693d4cd7b2e9060d14369731a78755a4}
}]6\-Axx \index{I\-N\-S\-Not\-Supported@{I\-N\-S\-Not\-Supported}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!I\-N\-S\-Not\-Supported@{I\-N\-S\-Not\-Supported}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8ae510e288bffe8427ef1cf79fb7f1156b}{I\-N\-S\-Not\-Supported}\label{response_8h_a0b9384277369e8c36725467bb40194d8ae510e288bffe8427ef1cf79fb7f1156b}
}]6\-D00 \index{C\-L\-A\-Not\-Supported@{C\-L\-A\-Not\-Supported}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!C\-L\-A\-Not\-Supported@{C\-L\-A\-Not\-Supported}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8a8c2ab73b3a58c50e5b16810965d72115}{C\-L\-A\-Not\-Supported}\label{response_8h_a0b9384277369e8c36725467bb40194d8a8c2ab73b3a58c50e5b16810965d72115}
}]6\-E00 \index{Fatal\-Error@{Fatal\-Error}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!Fatal\-Error@{Fatal\-Error}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8a336747997fe4e20bb8ae39c3bdad28fb}{Fatal\-Error}\label{response_8h_a0b9384277369e8c36725467bb40194d8a336747997fe4e20bb8ae39c3bdad28fb}
}]6\-F00 \index{Max\-Response@{Max\-Response}!response.\-h@{response.\-h}}\index{response.\-h@{response.\-h}!Max\-Response@{Max\-Response}}\item[{\em 
\hypertarget{response_8h_a0b9384277369e8c36725467bb40194d8a83d52d0684a72d1ba9e2d6ec11a62a4c}{Max\-Response}\label{response_8h_a0b9384277369e8c36725467bb40194d8a83d52d0684a72d1ba9e2d6ec11a62a4c}
}]End of Response Enumeration. \end{description}
\end{Desc}


\subsection{Function Documentation}
\hypertarget{response_8h_a6be05ba2852f56e51be7c2b35e9018c8}{\index{response.\-h@{response.\-h}!Response\-Manager@{Response\-Manager}}
\index{Response\-Manager@{Response\-Manager}!response.h@{response.\-h}}
\subsubsection[{Response\-Manager}]{\setlength{\rightskip}{0pt plus 5cm}void Response\-Manager (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{response_8h_a6be05ba2852f56e51be7c2b35e9018c8}


set up an appropriate response A\-P\-D\-U 

Call by \hyperlink{command_8h_a83942a667e01b27bfeee7cfd36b02b2c}{Command\-Interpreter()} when finish execute the command. Interpret response type from command handler to Return Code (S\-W1 S\-W2), then transmit response A\-P\-D\-U (Return Code plus Return data) over \hyperlink{transmission_8h_a8497de52bba7fac4d237d1b534292cde}{trans\-Tx()}

\begin{DoxyReturn}{Returns}
none 
\end{DoxyReturn}
